package com.qingcheng.service.goods;

import com.qingcheng.entity.PageResult;
import com.qingcheng.pojo.goods.Brand;

import java.util.List;
import java.util.Map;

/**
 * Created by chendx on 2021/5/21.
 */
public interface BrandService {
    List<Brand> findAll();

    Brand findById(Integer id);

    PageResult<Brand> findPage(Integer currentPage, Integer pageSize);

    List<Brand> findByCondition(Map<String, Object> map);
    
    PageResult<Brand> findByConditionPage(Map<String, Object> map, Integer currentPage, Integer pageSize);

    void insert(Brand brand);

    void update(Brand brand);

    void deleteById(Integer id);
}
